
const data = document.querySelector('.data')

axios({
  url: 'http://139.9.202.40:81/sys/message/list',
  method: 'GET',

}).then(result => {
  console.log(result)
  result.list.map((items, index) => {
    return ` <li class="id">${items.id}</li>
    <li class="date">${items.data}</li>
    <li class="time">${items.time}</li>
    <li class="isRead">${items.isRead}</li>
    <li class="isDelete">${items.sender}</li>
    <li class="sender">${items.sender}</li>
    <li class="content">${items.content}</li>
    <li class="unreadTotal"></li>
    <li class="total"></li>`
  }).join('')

})

axios({
  url: '139.9.202.40:81/sys/medicinecategory/listAll',
  method: 'GET',

}).then(result => {
  console.log(result)


})

axios({
  url: '139.9.202.40:81/smb/medicine/save',
  method: 'POST',
  data: {

    mname,
    munit,
    mid,
    mmanufacturer,
    mcategory,
    mdesc,
    mpic,
    mcname

  }

}).then(result => {
  console.log(result)


})
